import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter);

const router = new VueRouter({
  routes: [
    {
      path: '/',
      name: "todo",
      redirect: '/todo'
    },
    {
      path: '/home',
      name: 'home',
      meta: {
        title: '首页'
      }, component: () => import('../views/home/List.vue')
    },
    {
      path: '/todo',
      name: 'todo',
      meta: {
        title: 'Todo List'
      }, component: () => import('../views/todolist/TodoList.vue')
    },
    {
      path: '/403',
      name: '403',
      meta: {
        title: '403'
      }, component: () => import('../views/errors/403.vue')
    }
  ]
});
export default router
